FROM python:3.10-slim

WORKDIR /app

COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

COPY . .

# 确保敏感词目录存在
RUN mkdir -p /app/data/sensitive_words

# 使用简单HTTP服务器启动
CMD ["python", "run.py"] 